<%- include header %>
<div id="carousel-example-generic" class="carousel slide hidden-md hidden-sm" data-ride="carousel">
	<!-- Indicators -->
	<!-- Wrapper for slides -->
	<div class="carousel-inner" role="listbox">
	<div class="item active">
 		<img src="images/1.jpeg" alt="1">
  		<div class="carousel-caption">
    	喂
  		</div>
	</div>
	<div class="item">
  		<img src="images/2.jpeg" alt="2">
  		<div class="carousel-caption">
    	你知道吗
  		</div>
	</div>
	<div class="item">
  		<img src="images/3.jpeg" alt="3">
  		<div class="carousel-caption">
    	大海为什么是蓝色的
  		</div>
	</div>
	</div>

	<!-- Controls -->
	<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
	<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
	<span class="sr-only">Previous</span>
	</a>
	<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
	<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
	<span class="sr-only">Next</span>
	</a>
</div>
<% posts.forEach(function(post,index){ %>
<div class="well well-lg">
	<p>
		<h2>
			<a href="/u/<%= post.name %>/<%= post.time.day %>/<%= post.title %>">
				<%= post.title %>
			</a>
		</h2>
	</p>
	<p class="info">
		作者：
		<a href="/u/<%= post.name %>">
			<%= post.name %>
		</a>
		日期：
			<%= post.time.minute %>
		标签：
		<% post.tags.forEach(function(tag,index){ %>
		<% if(tag){ %>
		<a href="/tags/<%= tag %>" class="tag"><%= tag %></a>
		<% } %>
		<% }) %>
	</p>
	<p>
		<%- post.post %>
	</p>
</div>
<% }) %>
<%- include paging %>
<%- include footer %>